﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Security.Permissions;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Swaf;
using Swaf.BizObj;

namespace Syrinx.Gui.AspNet.Ajax
{
    [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]
    [Themeable(true)]
    public class CkEditor : Syrinx.Gui.AspNet.CkEditor
    {
        protected override string innerBuildConfigOptions()
        {
            IBizObj cul = Swaf.Application.currentApp.resMgr.CurrentCulture;
            string dnetCul = (string)cul.get("dotNetBaseCulture");
            if (!Cmn.IsEmpty(dnetCul))
            {
                string[] c = dnetCul.Split('-');
                Language = c[0];
            }
            return Swaf.Application.currentApp.resMgr.resolve(base.innerBuildConfigOptions());
        }
    }
}
